// import Login from '@/pages/login'

const options = {
  routes: [
    // {
    //   path: '/',
    //   redirect: '/demo'
    // },
    {
      path: '/',
      redirect: '/demoMulselect'
    },
    {
      path: '/login',
      name: '登陆页',
      // 路由按需导入方式的写法；正常是要先import组件，之后再如下
      // component: Login
      component: () => import('@/view/login')
    },
    {
      path: '/date',
      name: 'date',
      component: () => import('@/view/demo/demoDateStringPicker')
    },
    {
      path: '/demoMulselect',
      name: 'demoMulselect',
      component: () => import('@/view/demo/demoMulselect')
    },
    {
      path: '/calendar',
      name: 'calendar',
      component: () => import('@/component/calendar')
    },
    {
      path: '/yearPicker',
      name: 'yearPicker',
      component: () => import('@/view/demo/aYearPicker')
    },
    {
      path: '/demo',
      name: 'demo',
      component: () => import('@/view/demo/demo')
    }
  ]
}

export default options
